<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Events\ProductDeleteEvent;
class Product extends Model
{
    protected $dispatchesEvents =[
        'deleted'=> ProductDeleteEvent::class,
    ];
    public function cate(){
        return $this->belongsTo('App\Cate', 'cid');
    }
}
